function initState() {
  return {
    //权限
    authority: ['app1'],

    // 用户信息
    user: {
      userId: 'app1',
    },
  };
}

export default {
  namespace: 'user',
  state: { ...initState() },
  effects: {},

  reducers: {
    setState(state, action) {
      return { ...state, ...action.payload };
    },
    init(state, action) {
      return { ...initState() };
    },
  },
};
